package org.hoyi.util;

/**
 *          Author:ellen
 *          Email:ellen@kuaifish.com
 *          CreateDate:2015-05-20
 *          ModifyDate:2015-06-20
 *          hoyi entities @ hoyi.org
 *          使用请在项目关于内标注hoyi版权，
 *          hoyi版权归hoyi.org所有
 */
public class StrUtil
{
  public static String ToParscal(String str)
  {
    char[] ch = str.toCharArray();
    for (int i = 0; i < ch.length; i++) {
      if (i == 0)
        ch[0] = Character.toUpperCase(ch[0]);
      else {
        ch[i] = Character.toLowerCase(ch[i]);
      }
    }
    StringBuffer a = new StringBuffer();
    a.append(ch);
    return a.toString();
  }
}

